import { WebServer } from "./webserver/webserver";
import { DBManager } from "./data/dbmanager";

async function StartServer():Promise<void>
{
    await WebServer.listen(8080);
    console.log("server had init on 8080");

    require("./handle/handle_loader");//用項目近似的手段，兩次require
    //加載這些文件，就初始化了路由表

    //初始化一下数据库
    await DBManager.Init();
}
//var tt =new Handle_Test1();

StartServer();